package com.xiangyang.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageInfo {
    private Integer page;
    private Integer size;

    public Integer getSize() {
        return this.size==null?10:this.size==0?10:this.size;
    }
    public Integer getPage() {
        return this.page==null?1:this.page==0?1:this.page;
    }
}
